package cn.yuanqiao.archive.quanzongjuanguanli.domain;

import cn.yuanqiao.common.annotation.Excel;
import cn.yuanqiao.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;

import java.util.Date;

/**
 * 全宗卷介绍对象 YQQZJJS
 * 
 * @author sy
 * @date 2023-09-20
 */
public class YqQzjjsHb extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 全宗ID */
//    @Excel(name = "全宗ID")
    private Long fondsId;

    /** 全宗构成者名称 */
    @Excel(name = "全宗构成者名称")
    private String fondsComposer;

    /** 全宗号 */
    @Excel(name = "全宗号")
    private String fondsCode;

    /** 性质 */
    @Excel(name = "性质")
    private String nature;

    /** 隶属关系 */
    @Excel(name = "隶属关系")
    private String affiliation;

    /** 租户代码 */
//    @Excel(name = "租户代码")
    private String tenantCode;

    /** 创建人ID */
//    @Excel(name = "创建人ID")
    private Long creatorId;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    /** 最后修改人 */
//    @Excel(name = "最后修改人")
    private Long lastupdater;

    /** 最后修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date lastupdateTime;

    /** 主要职能 */
    @Excel(name = "主要职能")
    private String role;

    /** 主要负责人名录 */
    @Excel(name = "主要负责人名录")
    private String directorList;

    /** 机构设置 */
    @Excel(name = "机构设置")
    private String organization;

    /** 档案完整程度 */
    @Excel(name = "档案完整程度")
    private String completeness;

    /** 档案的利用价值及鉴定情况 */
    @Excel(name = "档案的利用价值及鉴定情况")
    private String appraisalSituation;

    /** 检索工具 */
    @Excel(name = "检索工具")
    private String searchTool;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getFondsId() {
        return fondsId;
    }

    public void setFondsId(Long fondsId) {
        this.fondsId = fondsId;
    }

    public String getFondsComposer() {
        return fondsComposer;
    }

    public void setFondsComposer(String fondsComposer) {
        this.fondsComposer = fondsComposer;
    }

    public String getFondsCode() {
        return fondsCode;
    }

    public void setFondsCode(String fondsCode) {
        this.fondsCode = fondsCode;
    }

    public String getNature() {
        return nature;
    }

    public void setNature(String nature) {
        this.nature = nature;
    }

    public String getAffiliation() {
        return affiliation;
    }

    public void setAffiliation(String affiliation) {
        this.affiliation = affiliation;
    }

    public String getTenantCode() {
        return tenantCode;
    }

    public void setTenantCode(String tenantCode) {
        this.tenantCode = tenantCode;
    }

    public Long getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(Long creatorId) {
        this.creatorId = creatorId;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getLastupdater() {
        return lastupdater;
    }

    public void setLastupdater(Long lastupdater) {
        this.lastupdater = lastupdater;
    }

    public Date getLastupdateTime() {
        return lastupdateTime;
    }

    public void setLastupdateTime(Date lastupdateTime) {
        this.lastupdateTime = lastupdateTime;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getDirectorList() {
        return directorList;
    }

    public void setDirectorList(String directorList) {
        this.directorList = directorList;
    }

    public String getOrganization() {
        return organization;
    }

    public void setOrganization(String organization) {
        this.organization = organization;
    }

    public String getCompleteness() {
        return completeness;
    }

    public void setCompleteness(String completeness) {
        this.completeness = completeness;
    }

    public String getAppraisalSituation() {
        return appraisalSituation;
    }

    public void setAppraisalSituation(String appraisalSituation) {
        this.appraisalSituation = appraisalSituation;
    }

    public String getSearchTool() {
        return searchTool;
    }

    public void setSearchTool(String searchTool) {
        this.searchTool = searchTool;
    }

    public String toStringWord() {
        return new ToStringBuilder("<h1>"+getFondsCode()+"</h1>")
                .append("<h2>一、全宗构成者沿革</h2>")
                .append("<h3>全宗构成者名称 "+getFondsComposer()+" 全宗号 "+getFondsCode()+"</h3>")
                .append("<h3>性    质 "+getNature()+" 隶属关系 "+getAffiliation()+"</h3>")
                .append("<h3>主要职能</h3>"+getRole())
                .append("<h3>主要负责人名录</h3>"+getDirectorList())
                .append("<h2>二、机构设置</h2>"+getOrganization())
                .append("<h2>三、全宗档案情况简介</h2>")
                .append("<h3>2.档案完整程度</h3>"+getCompleteness())
                .append("<h3>3.档案的利用价值及鉴定情况</h3>"+getAppraisalSituation())
                .append("<h3>4.检索工具</h3>"+getSearchTool())
                .toString();
    }
}
